﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AlRepeaterDemo.aspx.cs" Inherits="DemoPages_AlRepeaterDemo" %>

<%@ Register Assembly="Al.UI.Controls" Namespace="Al.UI.Controls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body  style="padding: 0px; margin:0px;">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc1:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <div style="background-color: Red">
                    <%#XPath("@Header")%>
                </div>
            </HeaderTemplate>
            <BodyTemplate>
                <div style="background-color: Yellow">
                    <%#XPath("text()")%>
                </div>
            </BodyTemplate>
            <FooterTemplate>
                <div style="background-color: Green">
                    <%#XPath("@Footer")%>
                </div>
            </FooterTemplate>
        </cc1:Repeater>
    </div>
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/XMLFile.xml"></asp:XmlDataSource>
    </form>
</body>
</html>
